import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import er from '../views/er.vue'
import thinking from '../views/thinking.vue'
import bpmn from '../views/bpmn.vue'
import uml from '../views/uml.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/er',
    name: 'er',
    component: er
  },
  {
    path: '/thinking',
    name: 'thinking',
    component: thinking
  },
  {
    path: '/bpmn',
    name: 'bpmn',
    component: bpmn
  },
  {
    path: '/uml',
    name: 'uml',
    component: uml
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
